﻿using System.Text;

namespace chromium.Utils
{
    public class Resources
    {
        private static readonly Resources instance = new Resources();
        public byte[] sslHelloBytes;
        public byte[] http304Bytes;
        public byte[] http500Bytes;

        public static Resources Instance
        {
            get { return instance; }
        }

        private Resources()
        {
            sslHelloBytes = Encoding.ASCII.GetBytes("HTTP/1.1 200 OK\r\nProxy-Agent: Java World Proxy Server\r\nContent-Length: 0\r\n\r\n");
            http304Bytes = Encoding.ASCII.GetBytes("HTTP/1.1 304 Not Modified\r\nContent-Length: 0\r\n\r\n");
            http500Bytes = Encoding.ASCII.GetBytes("HTTP/1.1 500 Internal Server Error\r\nContent-Length: 0\r\n\r\n");
        }

        public byte[] SslHelloBytes
        {
            get { return sslHelloBytes; }
        }

        public byte[] Http304Bytes
        {
            get { return http304Bytes; }
        }

        public byte[] Http500Bytes
        {
            get { return http500Bytes; }
        }
    }
}